package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.IndustryEducationClassMapper;
import com.ruoyi.system.domain.IndustryEducationClass;
import com.ruoyi.system.service.IIndustryEducationClassService;

/**
 * 课程申请Service业务层处理
 * 
 * @author coderChen
 * @date 2024-01-09
 */
@Service
public class IndustryEducationClassServiceImpl implements IIndustryEducationClassService 
{
    @Autowired
    private IndustryEducationClassMapper industryEducationClassMapper;

    /**
     * 查询课程申请
     * 
     * @param id 课程申请主键
     * @return 课程申请
     */
    @Override
    public IndustryEducationClass selectIndustryEducationClassById(Long id)
    {
        return industryEducationClassMapper.selectIndustryEducationClassById(id);
    }

    /**
     * 查询课程申请列表
     * 
     * @param industryEducationClass 课程申请
     * @return 课程申请
     */
    @Override
    public List<IndustryEducationClass> selectIndustryEducationClassList(IndustryEducationClass industryEducationClass)
    {
        return industryEducationClassMapper.selectIndustryEducationClassList(industryEducationClass);
    }

    /**
     * 新增课程申请
     * 
     * @param industryEducationClass 课程申请
     * @return 结果
     */
    @Override
    public int insertIndustryEducationClass(IndustryEducationClass industryEducationClass)
    {
        return industryEducationClassMapper.insertIndustryEducationClass(industryEducationClass);
    }

    /**
     * 修改课程申请
     * 
     * @param industryEducationClass 课程申请
     * @return 结果
     */
    @Override
    public int updateIndustryEducationClass(IndustryEducationClass industryEducationClass)
    {
        return industryEducationClassMapper.updateIndustryEducationClass(industryEducationClass);
    }

    /**
     * 批量删除课程申请
     * 
     * @param ids 需要删除的课程申请主键
     * @return 结果
     */
    @Override
    public int deleteIndustryEducationClassByIds(Long[] ids)
    {
        return industryEducationClassMapper.deleteIndustryEducationClassByIds(ids);
    }

    /**
     * 删除课程申请信息
     * 
     * @param id 课程申请主键
     * @return 结果
     */
    @Override
    public int deleteIndustryEducationClassById(Long id)
    {
        return industryEducationClassMapper.deleteIndustryEducationClassById(id);
    }
}
